#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: api_util.py 
@version:
@time: 2021/07/31 
"""
from hashlib import sha1


def tapsha1(password):
    s1 = sha1()  # 创建sha1加密对象
    s1.update(password.encode("utf-8"))  # 转码（字节流）
    password2 = s1.hexdigest()
    return password2.upper()


def api_joint(*args, division="/"):
    api = division.join(args)
    return api


if __name__ == '__main__':
    print(api_joint("1", "2", "3"))
